/**
 * Copyright @ 2000 ysten Co. Ltd. 
 * All right reserved.     
 * @author: wangmin
 * date: 2016-07-11     
 */
package com.task.service.impl;

import com.task.entity.CheckLog;
import com.task.repository.ICheckLogRepository;
import com.task.service.ICheckLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 审核记录服务
 */
@Service
public class CheckLogServiceImpl implements ICheckLogService {

    @Autowired
    ICheckLogRepository checkLogRepository;

    @Override
    public void save(CheckLog checkLog) {
        checkLogRepository.save(checkLog);
    }

    @Override
    public CheckLog findByChildTaskId(Long childTaskId) {
        return checkLogRepository.findByChildTaskId(childTaskId);
    }
}
